package o;

import android.content.Context;
import java.util.HashMap;

public final class epl {
    private static final String[] ˋ = new String[]{"cno", "code"};
    private static epl ˏ = null;
    private boolean ˊ = false;
    private HashMap<String, String> ॱ = new HashMap();

    private epl() {
    }

    public static synchronized epl ॱ() {
        epl o_epl;
        synchronized (epl.class) {
            if (ˏ == null || !ˏ.ˊ) {
                Context ˋ = ContentManager.getInstant().getContext();
                ˏ = new epl();
                ˏ.ॱ(ˋ);
            }
            o_epl = ˏ;
        }
        return o_epl;
    }

    private void ॱ(Context context) {
        try {
            if (this.ॱ.isEmpty()) {
                for (String str : ˋ) {
                    this.ॱ.put(str, context.getString(context.getResources().getIdentifier("wd_" + str, "string", context.getPackageName())));
                }
                this.ˊ = true;
            }
        } catch (Exception e) {
            Logger.e("ConfigHelper", "load config.xml exception:" + e.toString());
            this.ˊ = false;
        }
    }

    public String ˋ(String str, String str2) {
        if (this.ॱ == null || !this.ॱ.containsKey(str)) {
            return str2;
        }
        return (String) this.ॱ.get(str);
    }

    public String ˎ() {
        return ˋ("code", "0200");
    }

    public String ˋ() {
        return ˋ("cno", "4010001");
    }
}
